package model

/**
 * Created by Administrator on 2019-01-20.
 */
class XdCell {
    int x = 0
    int y = 0

    static final DELETE_FLAG_BOOLEAN = "XdCell.Delete.Flag"
    //单元格 的坐标
    int startCol = -1
    int startRow = -1
    private int endCol
    private int endRow
    int rowspan =1
    int colspan =1
    Map mergeField
    String field
    String title
    Object content //实际单元格Body内容
    String headContent //表头单元格内容
    String type
//    String primaryKey
//    String primaryValue
    Long id //记录配置表中字段的ID

    String dataType

    int getEndRow(){
       return this.startRow + this.rowspan - 1
    }

    int getEndCol(){
        return  this.startCol + this.colspan -1
    }

    int getStartCol(){
        return startCol
    }

    int getStartRow(){
        return startRow
    }

    String getHeadContent(){
        return this.title?:this.field
    }
}

